Skip to content

fix(net): reject empty fetch inventory requests - #7123

Merged
lvs0075 merged 1 commit into
tronprotocol:release_v4.8.3from
xxo1shine:fix/reject-empty-fetch-inv-data
Nov 23, 2026
Merged

lvs0075 merged 1 commit into
tronprotocol:release_v4.8.3from
xxo1shine:fix/reject-empty-fetch-inv-data

Conversation

@xxo1shine

Copy link
Copy Markdown
Collaborator

What does this PR do?
Reject FETCH_INV_DATA messages without inventory IDs as BAD_MESSAGE before completing request processing. Disconnect the sender with BAD_PROTOCOL so empty block requests cannot refresh the peer's last interactive time.

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

Reject FETCH_INV_DATA messages without inventory IDs as BAD_MESSAGE before
completing request processing. Disconnect the sender with BAD_PROTOCOL so
empty block requests cannot refresh the peer's last interactive time.
@lvs0075
lvs0075 merged commit 9f53b51 into tronprotocol:release_v4.8.3 Nov 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants